package com.yunduo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunduo.entity.Log;

import java.util.List;
//系统日志服务
public interface LogService extends IService<Log> {
    //根据日志名称和查询数据查询
    List<Log> getRolesByIds(String event,Integer count);

    //按业务名查找业务值
    List<String> getLogByName(String name);

    //根据业务名和业务值查找
    Log getLogByEventAndResult(String event,String result);

    //根据业务名和业务值删除
    boolean removeLogByEventAndResult(String event,String result);

    //修改邮箱,并删除原来记录
    boolean updateEmailByUserId(String userId,String email);
}
